package com.gdwhomework.chapter08.work003;

/**
 * @author 关道伟
 * @version 1.0
 * 匿名内部类的使用场景
 */
public class Test {
    public static void main(String[] args) {
        CellPhone cellPhone = new CellPhone();
        cellPhone.testWork(new Cal() {
            @Override
            public void work() {
                System.out.println("手机计算器...");
            }
        });
    }
}
